<?php
  $pn = 1;
  if ( strpos(page::url(2),'page')===0 ) {
    $pn = substr( page::url(2), 4 )+0;
  }
  
  $list = new EasyList();
  $list->page = $pn;
  $list->num = 10;
  $list->sql .= " WHERE `type`='blog.post' ";
  $list->order = " `date` DESC";
  $list->load();
  $list->template = 'log';
  $list->get_html('post')->flush();
 ?>